﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Player:Person
    {
        public Player() 
        {

        }
        public Player(string name):base(name) 
        { 

        }
        public override string Hello()
        {
            while (true)
            {
                Console.WriteLine("请出拳:1.剪刀  2.石头  3.布(输入相应的数字:)");
                int Fingerguessing = int.Parse(Console.ReadLine());
                switch (Fingerguessing)
                {
                    case 1:
                        return "剪刀";
                    case 2:
                        return "石头";
                    case 3:
                        return "布";
                    default:
                        break;
                }
            }
        }
    }
}
